.class public Lcom/instagram/android/b/t;
.super Ljava/lang/Object;
.source "InstagramPerfLogger.java"

# interfaces
.implements Lcom/instagram/b/g;


# instance fields
.field private final a:Lcom/facebook/c/h/a;

.field private final b:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Lcom/instagram/android/b/u;",
            ">;"
        }
    .end annotation
.end field

.field private final c:Lcom/instagram/b/c;


# direct methods
.method public constructor <init>(Lcom/instagram/b/c;Lcom/facebook/c/h/a;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 25
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 26
    new-instance v0, Lcom/b/a/b/cw;

    invoke-direct {v0}, Lcom/b/a/b/cw;-><init>()V

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Lcom/b/a/b/cw;->b(I)Lcom/b/a/b/cw;

    move-result-object v0

    const/16 v1, 0x14

    invoke-virtual {v0, v1}, Lcom/b/a/b/cw;->a(I)Lcom/b/a/b/cw;

    move-result-object v0

    invoke-virtual {v0}, Lcom/b/a/b/cw;->m()Ljava/util/concurrent/ConcurrentMap;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/b/t;->b:Ljava/util/Map;

    .line 30
    iput-object p2, p0, Lcom/instagram/android/b/t;->a:Lcom/facebook/c/h/a;

    .line 31
    iput-object p1, p0, Lcom/instagram/android/b/t;->c:Lcom/instagram/b/c;

    .line 32
    return-void
.end method

.method private d(Ljava/lang/String;Lcom/instagram/b/d;)Ljava/lang/String;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 72
    if-nez p2, :cond_0

    :goto_0
    return-object p1

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-interface {p2}, Lcom/instagram/b/d;->d_()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ":"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    goto :goto_0
.end method


# virtual methods
.method public a(Ljava/lang/String;)V
    .locals 1
    .parameter

    .prologue
    .line 35
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lcom/instagram/android/b/t;->a(Ljava/lang/String;Lcom/instagram/b/d;)V

    .line 36
    return-void
.end method

.method public a(Ljava/lang/String;Lcom/instagram/b/d;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 39
    iget-object v0, p0, Lcom/instagram/android/b/t;->a:Lcom/facebook/c/h/a;

    invoke-interface {v0}, Lcom/facebook/c/h/a;->a()J

    move-result-wide v0

    invoke-virtual {p0, p1, p2, v0, v1}, Lcom/instagram/android/b/t;->a(Ljava/lang/String;Lcom/instagram/b/d;J)V

    .line 40
    return-void
.end method

.method public a(Ljava/lang/String;Lcom/instagram/b/d;J)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 43
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/b/t;->d(Ljava/lang/String;Lcom/instagram/b/d;)Ljava/lang/String;

    move-result-object v0

    .line 44
    new-instance v1, Lcom/instagram/android/b/u;

    invoke-direct {v1, p1, p2, p3, p4}, Lcom/instagram/android/b/u;-><init>(Ljava/lang/String;Lcom/instagram/b/d;J)V

    .line 45
    iget-object v2, p0, Lcom/instagram/android/b/t;->b:Ljava/util/Map;

    invoke-interface {v2, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 46
    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 1
    .parameter

    .prologue
    .line 49
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lcom/instagram/android/b/t;->b(Ljava/lang/String;Lcom/instagram/b/d;)V

    .line 50
    return-void
.end method

.method public b(Ljava/lang/String;Lcom/instagram/b/d;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 53
    iget-object v0, p0, Lcom/instagram/android/b/t;->a:Lcom/facebook/c/h/a;

    invoke-interface {v0}, Lcom/facebook/c/h/a;->a()J

    move-result-wide v0

    invoke-virtual {p0, p1, p2, v0, v1}, Lcom/instagram/android/b/t;->b(Ljava/lang/String;Lcom/instagram/b/d;J)V

    .line 54
    return-void
.end method

.method public b(Ljava/lang/String;Lcom/instagram/b/d;J)V
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    .line 57
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/b/t;->d(Ljava/lang/String;Lcom/instagram/b/d;)Ljava/lang/String;

    move-result-object v0

    .line 58
    iget-object v1, p0, Lcom/instagram/android/b/t;->b:Ljava/util/Map;

    invoke-interface {v1, v0}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/b/u;

    .line 60
    if-nez v0, :cond_0

    .line 69
    :goto_0
    return-void

    .line 64
    :cond_0
    invoke-virtual {v0}, Lcom/instagram/android/b/u;->a()J

    move-result-wide v1

    sub-long v1, p3, v1

    .line 65
    invoke-virtual {v0}, Lcom/instagram/android/b/u;->b()Lcom/instagram/b/f;

    move-result-object v0

    .line 66
    const-string v3, "elapsed_time"

    invoke-virtual {v0, v3, v1, v2}, Lcom/instagram/b/f;->a(Ljava/lang/String;J)Lcom/instagram/b/b;

    .line 68
    iget-object v1, p0, Lcom/instagram/android/b/t;->c:Lcom/instagram/b/c;

    invoke-interface {v1, v0}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    goto :goto_0
.end method

.method public c(Ljava/lang/String;Lcom/instagram/b/d;)Lcom/instagram/android/b/v;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 80
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/b/t;->d(Ljava/lang/String;Lcom/instagram/b/d;)Ljava/lang/String;

    move-result-object v0

    .line 81
    iget-object v1, p0, Lcom/instagram/android/b/t;->b:Ljava/util/Map;

    invoke-interface {v1, v0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 82
    const/4 v0, 0x0

    .line 85
    :goto_0
    return-object v0

    :cond_0
    new-instance v1, Lcom/instagram/android/b/v;

    iget-object v2, p0, Lcom/instagram/android/b/t;->b:Ljava/util/Map;

    invoke-interface {v2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/b/u;

    invoke-direct {v1, v0}, Lcom/instagram/android/b/v;-><init>(Lcom/instagram/android/b/u;)V

    move-object v0, v1

    goto :goto_0
.end method

.method public synthetic c(Ljava/lang/String;)Lcom/instagram/b/e;
    .locals 1
    .parameter

    .prologue
    .line 15
    invoke-virtual {p0, p1}, Lcom/instagram/android/b/t;->d(Ljava/lang/String;)Lcom/instagram/android/b/v;

    move-result-object v0

    return-object v0
.end method

.method public d(Ljava/lang/String;)Lcom/instagram/android/b/v;
    .locals 1
    .parameter

    .prologue
    .line 76
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lcom/instagram/android/b/t;->c(Ljava/lang/String;Lcom/instagram/b/d;)Lcom/instagram/android/b/v;

    move-result-object v0

    return-object v0
.end method
